/**
 * 使用全屏幕表单的话，可以在配置中引入本文件
 */
onion.faces.globalMP.show = function(event,params){
	onion.faces.showFullModalPanel(event,onion.faces.globalMP.id,params);
};

if(window.parent != null && window.parent.frames["main"] != null){
	$(window.parent.frames["main"]).bind('resize', function() {
	    if(this.parent != null){
	    	var width,height;
	    	if(window.ActiveXObject){
	    		width = $(window.parent.frames['main']).width();
	    		height = $(window.parent.frames['main']).height();		
	    	}else{
	    		width = $(window.parent.frames['main']).width() - 5;
	    		height = $(window.parent.frames['main']).height() - 5;
	    	}

	    	$("#globalMPContentDiv").css("height",height + "px").css("width",width + "px");
	    }
	});
}